package com.ik.iknowledge.web.controller.demo;

import com.ik.iknowledgecore.system.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
public class AdminController {

     @Autowired
    private AdminService adminService;

     @RequestMapping(value="/getAdmin",produces = "application/json;charset=UTF-8")
     public String GetAdmin(){

         return adminService.sel().getUsername().toString();
     }

}
